Skip to content

Conversation

@johnsaigle
Copy link
Collaborator

@johnsaigle johnsaigle commented Mar 7, 2024

Adds a fuzz harness for set_limit in RateLimitState. This function calls several others in the file so it's a decent choice for an initial fuzzing target.

This code also takes advantage of honggfuzz's automatic use of a fuzzing config flag. These directives are added in order to avoid noisy crashes during fuzzing that aren't representative of the state of the program (like trying crazy timestamps).

@johnsaigle johnsaigle changed the title solana: add fuzz target for RateLimitState solana: add fuzz harness for RateLimitState Mar 7, 2024
@johnsaigle johnsaigle self-assigned this Mar 14, 2024
@nik-suri nik-suri added the solana Change to Solana programs label Mar 25, 2024
@johnsaigle johnsaigle force-pushed the solana/fuzz-rate-limit-state branch 4 times, most recently from 18f0a42 to 89d20bc Compare April 10, 2024 14:57
@johnsaigle johnsaigle marked this pull request as ready for review April 10, 2024 14:58
@johnsaigle johnsaigle force-pushed the solana/fuzz-rate-limit-state branch from 89d20bc to cc6f4e5 Compare April 11, 2024 14:34
@nik-suri nik-suri added the tests label May 8, 2024
@nik-suri nik-suri requested a review from kcsongor May 8, 2024 17:50
@nik-suri nik-suri added the P2 label May 8, 2024
@nvsriram
Copy link
Collaborator

Closing this in favour of #648 as that is based on this PR and attempts to make fuzzing work for MacOS as well.

@nvsriram nvsriram closed this Jul 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 solana Change to Solana programs tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants